Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Sub InitializeWithLocalServiceAsync( _ ByVal locator As Locator, _ ByVal path As String, _ ByVal callback As Action(Of LocalGeocodeService) _ ) |
C# | |
---|---|
public static void InitializeWithLocalServiceAsync( Locator locator, string path, Action<LocalGeocodeService> callback ) |
This method accepts only a Locator task and the path to a package or workspace. If the package or workspace contains more than one locator the API will automatically use the first locator found.
This method will reuse an existing local geocode service if one exists with the same properties or start a new one if none are found on the runtime local server.
Parameters
- locator
- A Locator to initialize.
- path
- A System.String representing the path to a Locator Package, folder or Geodatabase.
- callback
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8